package com.model;

import java.text.SimpleDateFormat;
import java.util.Date;

public class JobLog {
    private Long id;

    private Date addTime;

    private Long jobId;

    private String content;

    private Byte status;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getAddTime() {
        return addTime;
    }
    public String getAddTimeStr() {
        return new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(addTime);
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Long getJobId() {
        return jobId;
    }

    public void setJobId(Long jobId) {
        this.jobId = jobId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }
}